package com.baox.agridata.synchronous.service.impl;

import com.baox.agridata.synchronous.dao.TXDRFarmMapper;
import com.baox.agridata.synchronous.entity.TXDRFarmEntity;
import com.baox.agridata.synchronous.service.TXDRFarmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TXDRFarmServiceImpl implements TXDRFarmService {

    @Autowired
    private TXDRFarmMapper txdrFarmMapper;


    @Override
    public TXDRFarmEntity selectTXDRFarmById(String mid) {
        return txdrFarmMapper.selectTXDRFarmById(mid);
    }

    @Override
    public Integer insertIntoTXDRFarm(TXDRFarmEntity txdrFarmEntity) {
        return txdrFarmMapper.insertIntoTXDRFarm(txdrFarmEntity);
    }

    @Override
    public Integer updateTXDRCarById(TXDRFarmEntity txdrFarmEntity) {
        return txdrFarmMapper.updateTXDRCarById(txdrFarmEntity);
    }

    @Override
    public List<TXDRFarmEntity> selectTXDRFarmDataToChengDu(String startTime) {
        return txdrFarmMapper.selectTXDRFarmDataToChengDu(startTime);
    }

    @Override
    public List<TXDRFarmEntity> selectSichuanData() {
        return txdrFarmMapper.selectSichuanData();
    }

    @Override
    public Integer deleteFarmList(List<TXDRFarmEntity> list) {
        return txdrFarmMapper.deleteFarmList(list);
    }
}
